package com.itheima.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.DubMapper.Mapper;
import com.itheima.domain.Book;
import com.itheima.service.DubService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service(interfaceClass = DubService.class)
@Transactional
public class DubServiceImpl implements DubService {

    @Autowired
    private Mapper mapper;

    @Override
    public List<Book> sayHello() {
        System.out.println("8088"+"hello world");
        List<Book> list = mapper.findAll();
        return list;
    }
}
